<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <!--<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-time" data-rule="required" class="form-control datetimepicker" data-date-format="HH:mm" data-use-current="true" name="row[time]" type="text" value="{:$row.time?date('H:i', $row.time):''}">
        </div>
    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sql')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-sql" class="form-control " rows="30" name="row[sql]" cols="50">{$row.sql|htmlentities}</textarea>
            <input type="hidden" name="row[active]" id="c-active" value="{$row.active|htmlentities}" />
        </div>
    </div>
    <!--<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Server')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-server" data-rule="required" data-source="server/index" class="form-control selectpage" name="row[server]" type="text" value="{$row.server|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Dept_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-dept_ids" data-rule="required" data-source="dept/index" data-multiple="true" class="form-control selectpage" name="row[dept_ids]" type="text" value="{$row.dept_ids|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input
                    id="c-type"
                    data-rule="required"
                    data-source='[{"id":"1", "name":"{:__("Type 1")}"}, {"id":"2", "name":"{:__("Type 2")}"}, {"id":"3", "name":"{:__("Type 3")}"}]'
                    class="form-control selectpage"
                    name="row[type]"
                    type="text"
                    value="{$row.type|htmlentities}"
            >
        </div>
    </div>-->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
